package com.ug.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ug.common.utils.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 字典表实体类
 * </p>
 *
 * @author LY
 * @since 2024-08-13 10:56:19
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_dict")
public class SysDict extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "dict_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long dictId;

    /**
     * 字典名称
     */
    private String dictName;

    /**
     * 字典code编码
     */
    private String dictCode;

    /**
     * 描述
     */
    private String description;

    /**
     * 字典状态（0：停用，1：启用）
     */
    private Integer enabled;
}
